home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / internet / other / ka9q / n890421.zoo / read.me < prev    next >
Encoding:
Text File  |  1992-06-20  |  15.3 KB  |  341 lines

  1. [ see readme.st ]
  2.  
  3.  
  4.  
  5. KA9Q TCP is an implementation of TCP/IP for the PC.  This is a Unix
  6. port based on a version from mid-1989.  Unfortunately the more recent
  7. versions of KA9Q are harder to port to Linux.
  8.  
  9. I don't have a manual for this exact version.  There's builtin help.
  10. The commands primarily set parameters (the ip and tcp commands), or
  11. start services.  In general the same command is used to set and
  12. examine parameters.  When you type the command with no value, it shows
  13. the current value. 
  14.  
  15. To use KA9Q, put startup.net and possibly domain.txt in your home
  16. directory, and run "net".  You will probably need to tailor
  17. startup.net for your configuration.  See the section at the end of
  18. this document on configuration.  Note that you can give an argument to
  19. the "net" command.  It will be used as the startup file in place of
  20. startup.net.  By default, startup.net and other files are in your home
  21. directory (the value of the environment variable HOME).  You can put
  22. them somewhere else by using the environment variable NETHOME.
  23.  
  24. If you are using SLIP, note that you must first dial the modem and
  25. establish a SLIP connection.  The exact details on doing this are
  26. different at each site.  Unfortunately you're probably going to need
  27. help from system or network support staff in order to use SLIP.
  28. Because SLIP effectively connects you to someone's local network,
  29. using it normally requires logging in with a password.  I recommend
  30. using kermit's script facility to dial and set up SLIP.  It did not
  31. seem work adding a similar facility to KA9Q.
  32.  
  33. If your site does not current support SLIP, they will probably have to
  34. do a bit of systems work.  For Unix systems, typically this will
  35. involve adding a SLIP device driver, and then enabling routing.  (An
  36. appropriate driver is available for the Sun, although I don't know
  37. where.  I believe it can be installed without Sun source.)  Many
  38. terminal servers will support SLIP directly, so enabling it will
  39. merely involve changing a configuration file.
  40.  
  41. Aside from configuration commands (which typically go into
  42. startup.net), the most common commands are probably telnet and ftp.
  43. Both take a host name.  Once you are connected, the "escape character"
  44. (initially ^]) lets you do some special things.  You type it followed
  45. by another character. Except for the escape character, the characters
  46. are folded, so that c, C, and ^C are equivalent.  Here's a list of the
  47. special characters:
  48.  
  49.   escape character (i.e. two in a row) - send a real escape character
  50.   x or ^x - return to command mode
  51.   b or ^b - send break
  52.   c or ^c - send interrupt process
  53.   o or ^c - abort output
  54.   t or ^t - are you there?
  55.   h or ^h - send telnet erase character
  56.   u or ^u - send telnet erase line
  57.   ?       - print this help message
  58.   
  59. Once you return to command mode, the "session" command can be used to
  60. switch between connections.  With no arguments, it shows the current
  61. sessions.  With a number, it will reconnect you to that session.
  62. There's a disconnect command to kill a session (also some stronger
  63. ways of doing it).
  64.  
  65. Telnet normally operates in full duplex, with the other system
  66. echoing.  However if that system refuses echoing, or if you use the
  67. command "echo refuse", KA9Q will echo locally.  In this case you have
  68. the normal line editing functions.  Several control characters have
  69. special functions.  Note that in local echo mode, you do not need to
  70. hit the escape character first.
  71.  
  72.   escape character - return to command mode
  73.   ^v - quote the next character
  74.   ^b - send break
  75.   ^c - send interrupt process
  76.   ^o - abort output
  77.   ^t - are you there?
  78.  
  79. Telnet will pass your TERM environment variable as the terminal type
  80. if the other end asks for it.  It will implement flow control locally
  81. if the other end understand the remote flow control option.  If the
  82. other end does a "telnet sync" correctly, it will suppress output when
  83. appropriate.  E.g. when talking to a Unix system, if you type ^C or ^O
  84. in the middle of a large output, output should stop immediately.
  85. However there may be a pause before getting the next prompt, as some
  86. previously buffered data is probably still going to be transmitted.
  87.  
  88. The "ip stat" and "tcp stat" commands are useful to get statistics.
  89. "Ip stat" shows both the IP and SLIP level.  If header compression is
  90. being used, it will show how many packets were compressed and how many
  91. were oot.
  92.  
  93. FTP is sort of odd.  It looks like you are in an interactive
  94. conversation with the FTP server at the other end, with no local
  95. command prompt.  Most commands are passed directly to the remote
  96. server, but in fact there is a local command parser, which will
  97. intervene for a few commands:
  98.  
  99.    cd, dir, list, get, ls, mkdir, nlst, rmdir, put, type
  100.  
  101. get and put should be used to transfer files.
  102.  
  103. It's possible to run a server which others can connect to, though I
  104. haven't tried it except for ftp.  The command is "start ftp", etc.
  105. For ftp, a login is required.  The file ftpusers, in your home
  106. directory, contains a list of users and passwords.
  107.  
  108. Here's a list of commands:
  109.  
  110.    ! - call a recursive shell
  111.    arp - set arp parameters
  112.    ax25 - configure ham interface
  113.    attach - define an interface - must be used for each interface
  114.    bootp - request our IP address from a server
  115.    connect - for AX25, define call sign for interface
  116.    cd
  117.    close
  118.    disconnect
  119.    dir - do a directory on the local system
  120.    domain - configure domain name system
  121.    eaglestat
  122.    echo - refuse or accept - request to disable telnet remote echo
  123.    eol - Unix or standard end of line options [standard is recommended,
  124.     even for use on Unix systems]
  125.    escape - change escape character
  126.    etherstat
  127.    exit
  128.    finger
  129.    forward - divert packets from one interface to another
  130.    ftp - open an ftp connection
  131.    hapnstat
  132.    help - print command list
  133.    hostname - set/examine host name
  134.    kick
  135.    log
  136.    ip - set/examine IP level parameters
  137.    memstat
  138.    mbox, mode - AX25 commands
  139.    mulport
  140.    netrom
  141.    nrstat
  142.    param - set/examine interafce parameters
  143.    ping - send ping to a host
  144.    pwd 
  145.    rdate [offset] [host] - set date/time from UDP time daemon.  see below
  146.    record
  147.    remote
  148.    reset - kill connection
  149.    route - set up routes
  150.    session - see above: move to a different session
  151.    shell - call a subshell
  152.    smtp - mail handling
  153.    start - start server
  154.    stop - stop server
  155.    tcp - set/examine tcp parameters
  156.    telnet - open telnet connection
  157.    trace - enable low-level debugging (no arguments - show current status)
  158.     trace to <file> - put trace output on file (use "con" for console)
  159.     trace <device> [<bits>] - trace packets on device
  160.         device is typically "sl0" or "loopback"
  161.         bits are in hex:
  162.             1 - output, 10 - input (else no tracing)
  163.             100 - dump data in ascii, 200 - hex (else headers only)
  164.     trace cmdmode|allmode - show trace just when at command level?
  165.     trace telnet [on | off] - show telnet options and urgent data
  166.    udp - set/examine udp parameters
  167.    upload
  168.    wait - control mail select
  169.  
  170. The rdate command uses the old-style time protocol (often known as
  171. "rdate"), on UDP port 37, to get the date and time, and then sets the
  172. system clock.  Note that the protocol always gives time in GMT.  If
  173. your system clock is running on GMT (which is the normal way Unix
  174. should run), this is fine.  Otherwise, you'll need to specify the
  175. offset in minutes.  For time zones west of GMT, this should be a
  176. negative number. For the Eastern U.S., when not in daylight time, the
  177. offset is -300, because EST is 5 hours (300 minutes) west of GMT.
  178. If no host is specified, a UDP broadcast is used.
  179.  
  180. This configuration of KA9Q has been tested only with SLIP.  Code is
  181. also included for the KISS device (for ham radio) and Linux generic
  182. Ethernet support using /dev/eth.  /dev/eth should either work or come
  183. close to working: it's based on diffs made from a recent version of
  184. KA9Q.  I don't know of anyone who has tested KISS.  Past experience
  185. suggests that users will prefer Kermit to SLIP unless you use SLIP
  186. with header compression.
  187.  
  188. Note that this program depends up non-blocking I/O and the select
  189. system call.  In Linux 0.12, these did not work.  There are patches,
  190. nonblock.tar.Z and select.patch, on the major distribution machines.
  191. Don't forget: after patching a kernel source file, you must do a make
  192. in each directory where you changed a file.  The main make file
  193. doesn't rebuild things all the time when it should.  Linux 0.95
  194. and later has all the necessary patches.
  195.  
  196.  
  197. CONFIGURATION:
  198.  
  199. Here's some advice on preparing a configuration file.  I assume you're
  200. planning to use SLIP (dialup IP) or Ethernet.  I'm going to explain my
  201. configuration file line by line, as it's likely to be close to what
  202. you need:
  203.  
  204.    attach asy 0 /dev/tty64 cslip sl0 2048 1500 9600
  205.  
  206. You must include an attach command in every configuration file.  It
  207. defines the device.  For SLIP, the line above should be about right.
  208. Some variationos:
  209.    - /dev/tty64 is the serial line.  Obviously you can adjust this
  210.     to use a different line.
  211.    - cslip specifies SLIP with Van Jacobsen header compression.
  212.     If you're using normal slip, use "slip" instead of "cslip".
  213.     In my opinion, response on normal SLIP is too slow for it
  214.     to be very useful.
  215.    - 9600 is the line speed.  Use whatever speed you are set for.
  216.     If you have a "smart" modem, we recommend turning off
  217.     any error correction or compression.  These features
  218.     introduce enough delay to be objectionable.
  219.  
  220. The following attach command could be used for Linux generic
  221. Ethernet (/dev/eth)
  222.   attach linux arpa eth0 1500 1.2.3.fa.fb.fc
  223. The last item is your Ethernet hardware address, in hex.  It should
  224. be printed when your system boots.  E.g. if it prints 01 02 03 04 05 06
  225. then you put in 1.2.3.4.5.6.  Each of the six numbers is in hex, and
  226. may be one or two digits.
  227.  
  228.   wait 0
  229.  
  230. This should only be needed with older version of the kernel.  It
  231. disables the select system call.  Instead, runs in a tight loop
  232. continuously testing for input.  Unfortunately select has a history of
  233. problems under Linux.  It appears to be fine in version 0.96.  However
  234. in earlier version, select did not work properly when there was
  235. another program running.  (In some cases it works OK unless the other
  236. program uses select.  E.g.  if you enter emacs in another window, your
  237. FTP comes to a halt.)  If you are trying to use KA9Q while another
  238. program is running, and you find that the connection hangs, you might
  239. try "wait 0".  Otherwise, you should leave the default setting, which
  240. is "wait 100".  The argument to wait is in milliseconds.  It's the
  241. amount of time to wait in the main loop.  The select will trigger if
  242. input arrives on the serial line, or you hit a key.  Otherwise it
  243. waits this amount of time.  I don't recommend values larger than 100.
  244. Smaller values might possibly be useful in some siuations.
  245.  
  246.   route add default sl0
  247.  
  248. This says that all packets should be sent out the SLIP line.  Presumably
  249. this is what you want.  If you are using Ethernet, of course you'd
  250. use the name of your Ethernet device instead of sl0, e.g.
  251.   route add default eth0
  252.  
  253.   bootp
  254.  
  255. This says that the system will find out its IP address by sending a
  256. BOOTP request out the serial line.  Since dialups are normally  
  257. in "hunt groups", you will probably get a different line each time
  258. you dial up.  Thus your IP address will probably not be the same.
  259. BOOTP is a way of asking the terminal server (or whatever else
  260. you're connected to) to tell you your IP address.  If your terminal
  261. server does not support BOOTP, you explicitly set your IP address
  262. using a command of the form
  263.    ip address [1.2.3.4]
  264. where 1.2.3.4 is your IP address.  You would use this command
  265. instead of the BOOTP command.
  266.  
  267.   tcp mss 64
  268.   tcp window 256
  269.  
  270. These commands set TCP performance parameters.  These control a
  271. tradeoff between overall throughput, jerkiness of output, etc.  These
  272. parameters seem to give good performance for interactive connectionos.
  273. For FTP you might want larger values, particularly if you are going
  274. over a long-haul network like the Internet.  For FTP the best value
  275. for mss is at least 512, and probably more like 1024, with window
  276. between 2 and 4 times mss.  However Linux has fairly small buffers for
  277. the serial line, so you may not be able to get away with parameters
  278. much larger than the ones shown here.  If you are using Ethernet,
  279. of course you'll want larger values.  I suggest starting with
  280.   tcp mss 1460
  281.   tcp window 5840
  282. This should work for traffic on the local Ethernet.  If your 
  283. traffic tends to go through routers, a safer set of values is
  284.   tcp mss 512
  285.   tcp window 2048
  286.  
  287.   domain suffix rutgers.edu
  288.   domain add [128.6.4.4]
  289.  
  290. These parameters control the domain system.  That's the set of servers
  291. you use to look up host names.  You'll need to adjust these for your
  292. campus.  The suffix is tacked onto all host names you type, unless
  293. they already have a dot in them.  This lets you type "athos" instead
  294. of "athos.rutgers.edu".  Set it for the domain you most commonly use.
  295. The address 128.6.4.4 should be the address of a domain server on your
  296. campus.  All name lookups will be directed to that server.  You can
  297. define more than one, by using several "domain add" lines.
  298.  
  299. If your campus does not support the domain system, you can use a host
  300. table instead.  In that case you would omit the "domain" commands.
  301. The host table is called "domain.txt", in your home directory.  It's
  302. in the format of a domain master file.  The most important entries
  303. look like
  304.    athos.rutgers.edu. IN A 128.6.4.4
  305. Note that IN and A must be in upper case, and the name must include
  306. the whole suffix, and end in a dot. 
  307.  
  308. Note that this is a very old domain implementation, and is not up to
  309. the level of the current MS/DOS version.  It does not use TTL's.
  310. Every time you type a name, it first looks in domain.txt.  If there's
  311. an entry there, it will be used.  Otherwise, it will query the domain
  312. server you specified.  If it gets an answer, that information will be
  313. added to domain.txt.  If a host changes its address, you'll be in
  314. trouble, because you'll continue getting the old information from
  315. domain.txt.  Thus it's probably a good idea to remove domain.txt now
  316. and then.
  317.  
  318.   start finger
  319.   start telnet
  320.  
  321. These start daemons to respond to incoming finger and telnet
  322. connections.  This is optional, but most people will probably find
  323. them useful to help people find you.  The finger server uses files
  324. stored in a subdirectory "finger" of your home directory.  Files
  325. should have names of the form xxx.txt, where xxx is a user name.
  326. Finger with no arguments will list all users on the system (i.e.  it
  327. will look for all files ~/finger/*.txt, and list the names).  Finger
  328. with a specific user name will display the text of that file, i.e.
  329. ~/finger/xxx.txt.
  330.  
  331. The telnet server is really more like a talk link.  When someone
  332. telnets to your machine, you'll get a message saying that there is an
  333. incoming telnet connection.  At that point you should escape to the
  334. coommand level (using ^] or whatever your escape character is), do
  335. "session" to see the session number of the incoming connection and do
  336. "session NN" to connect to it.  At that point you'll be in an
  337. interactive link with the person.  There is also a server designed to
  338. allow "real" telnet connections, i.e. connections that create a real
  339. login session.  It is activated with the command "start telunix".
  340. However that code is incomplete, and currently does nothing useful.
  341.